import { createRouter,createWebHashHistory,  } from "vue-router";


const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("src/pages/index.vue"),
  },
  {
    path: "/about",
    name: "about",
    component: () => import("src/pages/about/about.vue"),
  },
  {
    path: "/test",
    name: "test",
    component: () => import("src/pages/test/test.vue"),
  },
  {
    path: "/child-window",
    name: "child-window",
    component: () => import("src/pages/child-window/child-window.vue"),
  },
  
//   {
//     path: "/register",
//     name: "register",
//     component: () => import("src/pages/register/register.vue"),
//   },
//   {
//     path: "/login",
//     name: "login",
//     component: () => import("src/pages/login/login.vue"),
//   },
];

const router = createRouter({
  history: createWebHashHistory('/'), // hash路由模式
  // history: createWebHistory("/"), // history路由模式
  routes,
});

export default router;
